package top.lshaci.learning.framework.log.service.impl;

import org.springframework.stereotype.Service;
import top.lshaci.learning.framework.log.service.TestService;
import top.lshaci.framework.log.annotation.Log;
import top.lshaci.framework.log.thread.LogThreadLocal;

/**
 * TestServiceImpl
 *
 * @author lshaci
 * @since 1.0.0
 */
@Service
public class TestServiceImpl implements TestService {

    @Log(title = "测试一下")
    @Override
    public void test(String name) {
        int i = 1 / 0;
        LogThreadLocal.set("这个是操作内容");
    }
}
